from django.db import models
# Create your models here.

class UserModel(models.Model):
    STATUS_CHOICES = ((1, "激活"), (2, "未激活"), (3, "拉黑"))
    username = models.CharField(max_length=30)
    password = models.CharField(max_length=150)
    phone = models.CharField(max_length=11)
    email = models.EmailField()
    profile = models.SmallIntegerField(choices=STATUS_CHOICES, default=2)
    class Meta:
        db_table='users'